package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectPhistoryEntity {
    private Long hisid;
    private Long collectid;
    private Long periodid;
    private Integer periodmonth;
    private Long actid;
    private String actname;
    private Integer ruleid;
    private String rulecode;
    private Integer levelid;
    private String levelcode;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;

    public Long getHisid() {
        return hisid;
    }

    public void setHisid(Long hisid) {
        this.hisid = hisid;
    }

    public Long getCollectid() {
        return collectid;
    }

    public void setCollectid(Long collectid) {
        this.collectid = collectid;
    }

    public Long getPeriodid() {
        return periodid;
    }

    public void setPeriodid(Long periodid) {
        this.periodid = periodid;
    }

    public Integer getPeriodmonth() {
        return periodmonth;
    }

    public void setPeriodmonth(Integer periodmonth) {
        this.periodmonth = periodmonth;
    }

    public Long getActid() {
        return actid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public String getActname() {
        return actname;
    }

    public void setActname(String actname) {
        this.actname = actname;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public String getRulecode() {
        return rulecode;
    }

    public void setRulecode(String rulecode) {
        this.rulecode = rulecode;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public String getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(String levelcode) {
        this.levelcode = levelcode;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectPhistoryEntity that = (CollectPhistoryEntity) o;

        if (hisid != null ? !hisid.equals(that.hisid) : that.hisid != null) return false;
        if (collectid != null ? !collectid.equals(that.collectid) : that.collectid != null) return false;
        if (periodid != null ? !periodid.equals(that.periodid) : that.periodid != null) return false;
        if (periodmonth != null ? !periodmonth.equals(that.periodmonth) : that.periodmonth != null) return false;
        if (actid != null ? !actid.equals(that.actid) : that.actid != null) return false;
        if (actname != null ? !actname.equals(that.actname) : that.actname != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (rulecode != null ? !rulecode.equals(that.rulecode) : that.rulecode != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (levelcode != null ? !levelcode.equals(that.levelcode) : that.levelcode != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = hisid != null ? hisid.hashCode() : 0;
        result = 31 * result + (collectid != null ? collectid.hashCode() : 0);
        result = 31 * result + (periodid != null ? periodid.hashCode() : 0);
        result = 31 * result + (periodmonth != null ? periodmonth.hashCode() : 0);
        result = 31 * result + (actid != null ? actid.hashCode() : 0);
        result = 31 * result + (actname != null ? actname.hashCode() : 0);
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (rulecode != null ? rulecode.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (levelcode != null ? levelcode.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
